#ifndef RENDERARROW_H
#define RENDERARROW_H

#include <iostream>
#include <allegro5/allegro5.h>
#include <allegro5/allegro_primitives.h>
#include <stdio.h>
#include "Man.h"

using namespace std;

class RenderArrow
{
    public:
        RenderArrow(ALLEGRO_BITMAP *arrowImage = NULL);

        void updateArrow();

        void drawArrowImage (Man *DigDug = NULL);

        void set_expand();

        int get_arrowHead_posX(){ return _arrowHead_posX; }
        int get_arrowHead_posY(){ return _arrowHead_posY; }

        void virtual destroyArrowImage();


    private:

        void updateArrowBitmap();

        ALLEGRO_BITMAP *_arrowImage;
        double _arrowExpand;

        bool _invisible;
        bool _expandable;
        bool _expand;
        bool _contract;
        int _shootDirection;

        int _arrowHead_posX;
        int _arrowHead_posY;
};

#endif // RENDERARROW_H
